//
//  UIPopoverListView+Create.h
//  MovingLoaniOS
//
//  Created by RAIN on 2019/2/28.
//  Copyright © 2019 GWMFC. All rights reserved.
//

#import "UIPopoverListView.h"

typedef id<UIPopoverListViewDataSource, UIPopoverListViewDelegate> PopInView;

NS_ASSUME_NONNULL_BEGIN

@interface UIPopoverListView (Create)

+ (UIPopoverListView *)popListViewIn:(PopInView)viewController;

+ (UIPopoverListView *)popListViewWithTitle:(NSString *)title
                                 titleColor:(UIColor *)titleColor
                                     source:(NSArray *)source
                           inViewController:(PopInView)viewController;

+ (UIPopoverListView *)popListViewWithCell:(UINib *)cellNib
                            cellIdentifier:(NSString *)identifier
                                     title:(NSString *)title
                                titleColor:(UIColor *)titleColor
                                    source:(NSArray *)source
                          inViewController:(PopInView)viewController;

+ (void)showPopListViewWithTitle:(NSString *)title
                          source:(NSArray *)source
                inViewController:(PopInView)viewController;

+ (void)showPopListViewWithCell:(UINib *)cellNib
                 cellIdentifier:(NSString *)identifier
                          title:(NSString *)title
                         source:(NSArray *)source
               inViewController:(PopInView)viewController;

+ (void)showPopListViewWithCell:(UINib *)cellNib
                 cellIdentifier:(NSString *)identifier
                          title:(NSString *)title
                     titleColor:(UIColor *)titleColor
                         source:(NSArray *)source
               inViewController:(PopInView)viewController;

@end

NS_ASSUME_NONNULL_END
